package com.spboot.app.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.jntoo.db.DB;
import java.io.Serializable;
import java.util.*;

@TableName("zuyong")
public class Zuyong implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    private Integer id;

    private Integer qicaiid;

    private String bianhao;

    private Integer fenlei;

    private String mingcheng;

    private String tupian;

    private Double zujia;

    private String danhao;

    private String kaishi;

    private String guihuan;

    private Integer shuliang;

    private Integer shizhang;

    private Double jine;

    private String zhuangtai;

    private String zuyongren;
    private String iszf;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Long getGuihuanCount() {
        return DB.name("guihuan").where("zuyongid", id).count();
    }

    public Integer getQicaiid() {
        return qicaiid;
    }

    public void setQicaiid(Integer qicaiid) {
        this.qicaiid = qicaiid == null ? 0 : qicaiid;
    }

    public String getBianhao() {
        return bianhao;
    }

    public void setBianhao(String bianhao) {
        this.bianhao = bianhao == null ? "" : bianhao.trim();
    }

    public Integer getFenlei() {
        return fenlei;
    }

    public void setFenlei(Integer fenlei) {
        this.fenlei = fenlei == null ? 0 : fenlei;
    }

    public String getMingcheng() {
        return mingcheng;
    }

    public void setMingcheng(String mingcheng) {
        this.mingcheng = mingcheng == null ? "" : mingcheng.trim();
    }

    public String getTupian() {
        return tupian;
    }

    public void setTupian(String tupian) {
        this.tupian = tupian == null ? "" : tupian.trim();
    }

    public Double getZujia() {
        return zujia;
    }

    public void setZujia(Double zujia) {
        this.zujia = zujia == null ? 0.0f : zujia;
    }

    public String getDanhao() {
        return danhao;
    }

    public void setDanhao(String danhao) {
        this.danhao = danhao == null ? "" : danhao.trim();
    }

    public String getKaishi() {
        return kaishi;
    }

    public void setKaishi(String kaishi) {
        this.kaishi = kaishi == null ? "" : kaishi.trim();
    }

    public String getGuihuan() {
        return guihuan;
    }

    public void setGuihuan(String guihuan) {
        this.guihuan = guihuan == null ? "" : guihuan.trim();
    }

    public Integer getShuliang() {
        return shuliang;
    }

    public void setShuliang(Integer shuliang) {
        this.shuliang = shuliang == null ? 0 : shuliang;
    }

    public Integer getShizhang() {
        return shizhang;
    }

    public void setShizhang(Integer shizhang) {
        this.shizhang = shizhang == null ? 0 : shizhang;
    }

    public Double getJine() {
        return jine;
    }

    public void setJine(Double jine) {
        this.jine = jine == null ? 0.0f : jine;
    }

    public String getZhuangtai() {
        return zhuangtai;
    }

    public void setZhuangtai(String zhuangtai) {
        this.zhuangtai = zhuangtai == null ? "" : zhuangtai.trim();
    }

    public String getZuyongren() {
        return zuyongren;
    }

    public void setZuyongren(String zuyongren) {
        this.zuyongren = zuyongren == null ? "" : zuyongren.trim();
    }

    public String getIszf() {
        return iszf;
    }

    public void setIszf(String iszf) {
        this.iszf = iszf == null ? "" : iszf.trim();
    }
}
